package com.only4play.practice.ordercenter.model.es;

import com.only4play.codegen.support.annotation.FieldDesc;
import com.only4play.practice.common.other.CodeValue;
import com.only4play.practice.ordercenter.api.model.domainmodel.OrderItemModel;
import com.only4play.practice.ordercommon.pay.PayItem;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

//@Document(indexName = "order_index")
@Data
public class OrderDocument {

  private String id;

  @FieldDesc(name = "订单类型")
  private Integer orderType;

  @FieldDesc(name = "订单类型文字显示")
  private String orderTypeTxt;

  private String flowNo;

  private BigDecimal totalAmount;

  private String orderStatusTxt;

  private Integer orderStatus;

  private Long accountId;

  private Integer accountType;

  private String phone;

//  @Field(type = FieldType.Nested)
  private List<CodeValue> attrs;

//  @Field(type = FieldType.Nested)
  private List<PayItem> payList;

//  @Field(type = FieldType.Nested)
  private List<OrderItemModel> orderItems;

  private Long payTime;

  //其他用户的信息，渠道的统计信息等

}
